package com.example.demo01.mapper;

import com.example.demo01.eneity.YzfCompetition;
import com.example.demo01.eneity.YzfUser;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
// 获取比赛信息
public interface YzfCompetionMapper {

     // 获取比赛信息
     List<YzfCompetition> getCompetitions();

     // 获取比赛信息，包含比赛类别
     List<YzfCompetition> getAllCompetitionsWithCategories();

     // 获取比赛评委
     List<YzfUser> getCompetitionJudges(int competitionId);

}

